package com.sgb.kjwl.model.entity.transport;

import com.sgb.kjwl.utils.NumberUtil;

public class WeightAndVolumeEntity  {
    private float min = 0f;
    private float max = 0f;
    private boolean isSelect = false;

    public WeightAndVolumeEntity(float min, float max) {
        this.min = min;
        this.max = max;
    }

    public float getMin() {
        return min;
    }

    public void setMin(float min) {
        this.min = min;
    }

    public float getMax() {
        return max;
    }

    public void setMax(float max) {
        this.max = max;
    }

    public String toString(){
        if (min==50f&&max==999.90f){
            return "50方以上";
        }
        if (min==20f&&max==999.90f){
            return "20吨以上";
        }
       return NumberUtil.trim0(min)+" - "+NumberUtil.trim0(max);
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }
}
